﻿using NHibernate.Engine;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace  NHibernate.Cfg
{
    public static class ConfigurationExtension
    {
        public static void AddXmlFile(this Configuration cfg,String TableName)
        {
            cfg.AddXmlFile(System.Configuration.ConfigurationManager.AppSettings["NHibernateConfigDirectoryPath"] + "\\" + TableName + ".hbm.xml");
        }
    }
}


